#include "choose.h"
#include "ui_choose.h"
#include"game.h"
#include"pushbox.h"
#include"tip.h"
choose::choose(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::choose)
{
    ui->setupUi(this);
    setWindowTitle("选择关卡");
    setWindowIcon(QIcon(":/image/target3.jpg"));
    QPixmap pixmap = QPixmap("://image/background2.png").scaled(this->size());
    QPalette  palette (this->palette());
    palette .setBrush(QPalette::Background, QBrush(pixmap));
    this-> setPalette( palette );
}

choose::~choose()
{
    delete ui;
}

void choose::on_pushButton_clicked()
{
    pushbox *psh;
    psh=new pushbox;
    psh->pbox->getmap(1);//
    this->close();
    psh->show();

}
void choose::on_pushButton_2_clicked()
{
    pushbox *psh;
    psh=new pushbox;
    psh->pbox->getmap(2);//
    this->close();
    psh->show();
}


void choose::on_pushButton_3_clicked()
{

    this->close();

}
